<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
同步回调地址
<input type="button" onclick="fun()" value="确认">

<a href="http://localhost:8888/pharmacy/groupbuy/groupgoods" id="aaa"></a>
<script>

    var aaa = document.getElementById('aaa')
    aaa.click()



    function fun() {
        var a = confirm("是否去支付\n(若不支付可稍后在我的拼团中查看并支付)")
        if(a == true){
            alert("确认")
        } else {
            alert("取消")
        }
    }

</script>
</body>
</html>